package com.seguriapp.common.gwt.client.celltable;

import com.google.gwt.core.client.GWT;
import com.google.gwt.resources.client.ImageResource;
import com.google.gwt.resources.client.ImageResource.ImageOptions;
import com.google.gwt.resources.client.ImageResource.RepeatStyle;
import com.google.gwt.user.cellview.client.CellTable;
import com.google.gwt.user.cellview.client.CellTable.Style;

/**
 * Estilos para las tablas en Interbank.
 */
public interface CellTableResources extends CellTable.Resources {

  public static final CellTableResources INSTANCE =  GWT.create(CellTableResources.class);

  @Source(value="celltable.css")
  public Style cellTableStyle();

  /**
   * The background used for footer cells.
   */
  @Source("cellTableHeaderBackground.png")
  @ImageOptions(repeatStyle = RepeatStyle.Horizontal, flipRtl = true)
  ImageResource cellTableFooterBackground();

  /**
   * The background used for header cells.
   */
  @ImageOptions(repeatStyle = RepeatStyle.Horizontal, flipRtl = true)
  ImageResource cellTableHeaderBackground();

  /**
   * The loading indicator used while the table is waiting for data.
   */
  @ImageOptions(flipRtl = true)
  ImageResource cellTableLoading();

  /**
   * The background used for selected cells.
   */
  @Source("cellListSelectedBackground.png")
  @ImageOptions(repeatStyle = RepeatStyle.Horizontal, flipRtl = true)
  ImageResource cellTableSelectedBackground();

  /**
   * Icon used when a column is sorted in ascending order.
   */
  @Source("sortAscending.png")
  @ImageOptions(flipRtl = true)
  ImageResource cellTableSortAscending();

  /**
   * Icon used when a column is sorted in descending order.
   */
  @Source("sortDescending.png")
  @ImageOptions(flipRtl = true)
  ImageResource cellTableSortDescending();
}
